package com.test.dubbo.web;

import com.test.dubbo.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class UserController {

    @Autowired
    HelloService helloService;

    @RequestMapping("/hello")
    @ResponseBody
    private String userDetail() {
        return helloService.sayHello("小明");
    }
}
